package com.forum.dto;

import java.time.LocalDateTime;

public class UserListDto {
    private Integer id;
    private String name;       // 对应 users.username
    private String email;
    private String createAt;   // 格式化的注册日期字符串，如 "yyyy-MM-dd"
    private String lastLogin;  // 格式化的最后登录日期
    private String status;     // 例如 "正常"（status==1）或 "异常"
    private Double balance;    // 用户余额
    private String avatar;     // 来自 user_profile.avatar
    private String bio;        // 来自 user_profile.description

    // getters & setters
    public Integer getId() {
        return id;
    }
    public void setId(Integer id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getEmail() {
        return email;
    }
    public void setEmail(String email) {
        this.email = email;
    }
    public String getCreateAt() {
        return createAt;
    }
    public void setCreateAt(String createAt) {
        this.createAt = createAt;
    }
    public String getLastLogin() {
        return lastLogin;
    }
    public void setLastLogin(String lastLogin) {
        this.lastLogin = lastLogin;
    }
    public String getStatus() {
        return status;
    }
    public void setStatus(String status) {
        this.status = status;
    }
    public Double getBalance() {
        return balance;
    }
    public void setBalance(Double balance) {
        this.balance = balance;
    }
    public String getAvatar() {
        return avatar;
    }
    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }
    public String getBio() {
        return bio;
    }
    public void setBio(String bio) {
        this.bio = bio;
    }
}
